package com.wondream.myframework.io.file;

import java.io.FileWriter;
import java.io.IOException;

public class FileWriterTest {
    final static String fileName = "./tmp/info.log";

    public static void main(String[] args) throws IOException {
        FileWriter writer = new FileWriter(fileName);
        writer.write("hello, world!");
        writer.write(65);
        writer.flush();
        writer.close();
        System.out.println("[[FileWriterTest.main]] write success. ");
    }
}
